#include "threadPool.h"
//这个函数负责接收order命令结构体

typedef struct order_s
{
    int type;
    char buf[1024];
}order_t;



int recvOrder(int sockfd,int *num,char *buf)
{
    //定义一个结构体
    order_t order;
    recv(sockfd,&order,sizeof(order_t),0);
    *num = order.type;
    memcpy(buf, order.buf, sizeof(order.buf));
    //buf = order.buf;
    return 0;
}

